//
//  YDYLiveTableViewFooter.m
//  DY_Bilibili
//
//  Created by 杨德勇 on 2016/10/9.
//  Copyright © 2016年 杨德勇. All rights reserved.
//

#import "YDYLiveTableViewSectionFooter.h"
#import "YDYPartitionMessage.h"
@interface YDYLiveTableViewSectionFooter()
@property (weak, nonatomic) IBOutlet UIButton *refreshBtn;
@property (weak, nonatomic) IBOutlet UIButton *seeMoreBtn;

@end

@implementation YDYLiveTableViewSectionFooter
-(void)setPartitionMessage:(YDYPartitionMessage *)partitionMessage{
    _partitionMessage = partitionMessage;
    int num = arc4random_uniform(700);
    [self.refreshBtn setTitle:[NSString stringWithFormat:@"%d条新动态，点击刷新",num] forState:UIControlStateNormal];
}
- (IBAction)seeMore:(id)sender {
    
    YDYLog(@"'%@'查看更多",self.partitionMessage.name);
}
- (IBAction)refresh:(id)sender {
    YDYLog(@"刷新'%@'的内容",self.partitionMessage.name);
}

@end
